<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
</body>
<script type="text/javascript">
//全局变量
	str='abc';
	function say(){
		alert(str);
	}
 say();

</script>
</html>